//
//  CusBtn.m
//  ZPIOSEducation
//
//  Created by Encoder on 17/3/2.
//  Copyright © 2017年 mini1. All rights reserved.
//

#import "CusBtn.h"

@implementation CusBtn

- (void)drawRect:(CGRect)rect {[super drawRect:rect];if(self.isSelected){[UIColorFromRGB(0x21a4eb) set];CGFloat w = [self.titleLabel.text calculateSize:CGSizeMake(MAXFLOAT, rect.size.height) font:self.titleLabel.font].width;UIRectFill(CGRectMake(self.titleLabel.frame.origin.x, CGRectGetMaxY(self.titleLabel.frame)+2, w, 1));}}


@end
